package com.headwind.logistics.prople.mapper;

import com.headwind.logistics.common.pojo.Customer;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * @Author Gu1028
 * @Date 2020/7/20 10:43
 * @Version 1.0
 * @DESCRIPTION 顾客数据访问层
 */

public interface CustomersMapper {

    /**
     * 查询出所有数据并且分页
     * @param page
     * @param rows
     * @return
     */
     List<Customer> selectAllCustomer(@Param("page")Integer page, @Param("rows")Integer rows);

    /**
     * 根据员工id修改员工信息
     * @param customer
     * @return
     */
    int updateCustomerByCustId(Customer customer);

    /**
     * 根据姓名、性别、手机号 搜索顾客
     * @param customer
     * @return
     */
    List<Customer> queryCustomerByNameOrSexOrPhoneOrStatus(@Param("customer")Customer customer
            ,@Param("page")Integer page
            ,@Param("rows")Integer rows
    );

}
